#include "app_common.h"
#include "app_net_tcp.h"

int main(int argc, void *argv[])
{
    if (argc < 2) {
        printf("FORMAT is [app svr] or  [app cli]\n");
        return -1;
    }

    if (0 == strcmp(argv[1], "svr")) {
        app_server_thread_init();
    }
    else if (0 == strcmp(argv[1], "cli")) {
        app_net_thread_init();	
		while(1);
    }
    else {
        printf("INVALID arg, valid range {\"svr\", \"cli\"}\n");
        return -1;
    }

    return 0;
    
}
